package com.cooliang.util;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;

public class CLFileWriter extends OutputStreamWriter {

	public CLFileWriter(File file) throws IOException {
		super(new FileOutputStream(file));
	}

	public CLFileWriter(OutputStream out, String charsetName) throws UnsupportedEncodingException {
		super(out, charsetName);
	}

	public void writeLine(String str) throws IOException {
		write(str, 0, str.length());
		write("\n");
	}

}
